<template>
  <div>
    <el-dialog title="数据查看" :visible.sync="formViewData.show" width="40%">
      <div class="">
        <div class="title">
          {{ formViewData.name }}
        </div>
        <div class="serialNumber">
          {{ formViewData.activityNum }}
        </div>
        <div class="activeTime">
          活动时间：{{ formViewData.activityStartTime }} <span>至</span>
          {{ formViewData.activityEndTime }}
        </div>
        <div class="activeInfo">
          <div>
            <span>参与量</span>
            <span>{{ formViewData.participateCount }}</span>
          </div>
          <div>
            <span>领取量</span>
            <span>{{ formViewData.receiveCount }}</span>
          </div>
          <div>
            <span>已赠商品数</span>
            <span>{{ formViewData.productsCount }}</span>
          </div>
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button @click="formViewData.show = false">取 消</el-button>
        <el-button type="success" @click="formViewData.show = false"
          >确认</el-button
        >
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: {
    formViewData: {
      type: Object,
      default: function() {
        return {
          show: false,
          participateCount: '',
          productsCount: '',
          receiveCount: '',
          name: '',
          activityNum: '',
          activityStartTime: '',
          activityEndTime: ''
        }
      }
    }
  },
  data() {
    return {}
  },
  created() {},
  mounted() {},
  methods: {}
}
</script>
<style lang="less" scoped>
.dialog-footer {
  margin-top: 40px;
}
.activeTime {
  margin-top: 10px;
}
.title {
  font-size: 26px;
  color: #333333;
  font-weight: 700;
}
.activeInfo {
  margin-top: 30px;
  width: 100%;
  height: 150px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  > div {
    box-shadow: 0 0 0 gray;
    border-radius: 5px;
    width: 33%;
    padding: 10px 0;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-start;
    background: rgba(242, 242, 242, 1);
    span:nth-of-type(1) {
      color: #333333;
      font-weight: 400;
      margin-left: 10px;
    }
    span:nth-of-type(2) {
      color: #333333;
      font-weight: 700;
      margin-left: 10px;
    }
  }
}
</style>
